﻿using System.ComponentModel.DataAnnotations;

namespace Entity.BaseInfo.DTO.Supplier
{
    /// <summary>
    /// 供应商表模型 - 新增
    /// </summary>
    public class SupplierAddDTO
    {
        /// <summary>
        /// 供应商编码
        /// </summary>
        [Required(ErrorMessage = "供应商编码Code不能为空")]
        public string Code { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        [Required(ErrorMessage = "供应商名称Name不能为空")]
        public string Name { get; set; }

        /// <summary>
        /// 供应商联系人
        /// </summary>
        public string? Contact { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string? Phone { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string? Address { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        [Required(ErrorMessage = "是否启用IsEnable不能为空")]
        public bool IsEnable { get; set; }
    }
}
